package t6;

import java.awt.image.PixelInterleavedSampleModel;
import java.util.TreeSet;

public class TreeSetStudent {
    public static void main(String[] args) {
        TreeSet<Student> temp=new TreeSet<Student>();
        temp.add(new Student("小明","18"));
        temp.add(new Student("小陈","18"));
        temp.add(new Student("小红","18"));
        temp.add(new Student("小红","19"));
        temp.add(new Student("小陈","18"));
        System.out.println(temp);
    }

}
